export default [
  {
    component: '../layouts/BlankLayout',
    routes: [
      {
        path: '/login',
        component: '../layouts/LoginLayout',
        routes: [
          {
            name: 'login',
            path: '/login',
            component: './Login',
          },
        ],
      },
      {
        component: '../layouts/SecurityLayout',
        routes: [
          {
            component: '../layouts/BasicLayout',
            routes: [
              {
                path: '/',
                component: '@/pages/Index',
              },
              {
                name: '用户管理',
                path: '/usermanage',
                icon: 'UserAddOutlined',
                routes: [
                  {
                    name: '用户列表',
                    path: 'person',
                    component: '@/pages/Usermanage/Person',
                  },
                ],
              },
              {
                name: '考试管理',
                path: '/exam',
                icon: 'AuditOutlined',
                routes: [
                  {
                    name: '考试列表',
                    path: 'examlist',
                    component: '@/pages/Exam/Examinations',
                  },
                  {
                    name: '试卷列表',
                    path: 'testList',
                    component: '@/pages/Exam/TestList',
                  },
                  {
                    name: '题库管理',
                    path: 'question',
                    icon: 'FormOutlined',
                    component: '@/pages/Exam/Question',
                  },
                ],
              },
              {
                path: '/department',
                icon: 'ApartmentOutlined',
                name: '部门管理',
                component: './Departments',
              },
              {
                name: '分类管理',
                path: '/category',
                icon: 'UpSquareOutlined',
                routes: [
                  {
                    path: '/category',
                    redirect: '/category/subject',
                  },
                  {
                    name: '科目分类',
                    category_group: 'subject',
                    path: '/category/subject',
                    component: '@/pages/Category',
                  },
                  {
                    name: '考试分类',
                    category_group: 'examination',
                    path: '/category/examination',
                    component: '@/pages/Category',
                  },
                  {
                    name: '试卷分类',
                    category_group: 'paper',
                    path: '/category/paper',
                    component: '@/pages/Category',
                  },
                  {
                    name: '题库分类',
                    category_group: 'text-bank',
                    path: '/category/text-bank',
                    component: '@/pages/Category',
                  },
                  {
                    name: '菜单分类',
                    category_group: 'menu',
                    path: '/category/menu',
                    component: '@/pages/Category',
                  },
                ],
              },
              {
                name: '统计报表',
                path: '/report',
                icon: 'BarChartOutlined',
                routes: [
                  {
                    name: '登录日志',
                    path: 'login',
                    component: '@/pages/Report/login',
                  },
                  {
                    name: '操作日志',
                    path: 'operation',
                    component: '@/pages/Report/operation',
                  },
                  {
                    name: '人员档案报表',
                    path: 'personnel',
                    component: '@/pages/Report/Personnel',
                  },
                  {
                    name: '成绩报表',
                    path: 'achievement',
                    component: '@/pages/Report/Achievement',
                  },
                ],
              },
              {
                name: '系统配置',
                path: '/configuration',
                icon: 'SettingOutlined',
                routes: [
                  {
                    name: '网站配置',
                    path: 'webconfig',
                    component: '@/pages/Configuration/WebConfig',
                  },
                  {
                    name: '权限管理',
                    path: 'permission',
                    component: '@/pages/Configuration/Permission',
                  },
                  {
                    name: '角色管理',
                    path: 'role',
                    component: '@/pages/Configuration/Role',
                  },
                ],
              },
            ],
          },
        ],
      },
    ],
  },
  {
    component: './404',
  },
];
